import React from 'react'
import './goods.css'
export default function GoodsInfo(props) {
    // console.log(props.obj);
    let obj = props.obj
    return (
        <div>
            <div className="goodsInfo_header">
                <span className="active_detail_span">商品</span>
                <span>评价</span>
                <span>详情</span>
                <span>推荐</span>
            </div>
            <div className="goodsinfo_content">
                <img src={obj.img} alt="" className="detail_img" />
                <div className="detail_coupon"><span>券 | 3元新人福利券</span></div>
                <div className="detail_price">
                    <span className="det_time">限时</span>
                    <span className="det_p">￥{obj.price}</span>
                    <del>￥{obj.market_price}</del>
                </div>
                <div className="detail_text">{obj.goodsname}</div>
                <div className="detail_txt">帅选11.11大促商品备份</div>
                <div className="detail_hot">
                    <span>{obj.description}</span>
                </div>
                <div className="detail_explan">
                    <span>帅选11.11大促商品</span>
                    <span>查看</span>
                </div>
            </div>
        </div>
    )
}
/*
        cateid: 2
        description: "今日附近787人在买"
        discount: 2
        goodsname: "芜湖青椒 250g/份"
        id: 9
        img: "/uploads/pepper.jpg"
        ishot: 1
        islimit: 1
        isnew_user: 1
        isseckill: 1
        market_price: 5.99
        price: 0.99
        status: 1
     */
